﻿using System.Data.Services.Common;

namespace Cookbook.Services.Core.Domain
{
    [DataServiceKey("Id")]
    public class Ingredient : VersionedEntity
    {
        protected Ingredient()
        {
        }

        public Ingredient(float amount, Product product)
        {
            Product = product;
            Amount = amount;
        }

        public virtual float Amount { get; set; }

        public virtual Product Product { get; private set; }
    }
}
